package com.xmutca.sso.api;

import java.io.Serializable;
import java.util.List;

/**
 * 角色
 * @author: 彭伟煌(pengweihuang@xmutca.com)
 * @create: 2016-08-08 14:27
 */
public class Role implements Serializable {

    public final static Integer STATE_ENABLE = 1;
    public final static Integer STATE_UNABLE = 0;

    private Integer id;

    private String name;

    /**
     * 角色拥有的权限列表
     */
    private List<Permission> permissions;

    /**
     * 状态
     */
    private Integer state = STATE_ENABLE;

    public List<Permission> getPermissions() {
        return permissions;
    }

    public void setPermissions(List<Permission> permissions) {
        this.permissions = permissions;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }
}
